Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Validate user sessions on bulk upload when f2f type is single #188

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

rhell4
Copy link
Contributor

@rhell4 rhell4 commented Dec 2, 2024

Currently when using the bulk upload feature a user can be added to multiple sessions when the f2f # type is set to single.

This adds validation checking on both existing signed up sessions and multiple sessions for a single user in a bulk upload.

Testing:

  • F2F activity with # type set to single
  • 3 sessions added to the F2F
  • Single student enrolled in the course
  • # the student to session 1
  • Upload a CSV to bulk # student to session 2 and 3
  • You should see the following errors
    • Student is already signed-up for this Face-to-Face activity.
    • User student has more than one session
  • Edit F2F and change the # type to multiple
  • Try uploading the same CSV file again
  • You should see "Uploaded file has been validated and ready to be processed."
  • Click "Confirm and process"
  • You should see "Successfully processed records."
  • The student should be signed up for all 3 sessions now

@matthewhilton matthewhilton merged commit 0d6ba90 into MOODLE_400_STABLE Dec 4, 2024
15 checks passed
@matthewhilton matthewhilton deleted the validate-#type branch December 4, 2024 23:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants